package com.fcscs.ecms.gwt.client;

import java.util.List;

import com.fcscs.cservice.domain.Advertisement;
import com.google.gwt.user.client.rpc.AsyncCallback;

public interface ECMSAdvertiseServiceAsync {

	void createAdvertisement(Advertisement ad,AsyncCallback<Advertisement> callback);

	void deleteAdvertisement(Advertisement ad, AsyncCallback<Boolean> callback);

	void getAdvertisement(long id, AsyncCallback<Advertisement> callback);

	void getAdvertisementList(long orgId, long propId, boolean isCurrent,
			AsyncCallback<List<Advertisement>> callback);

	void getAdvertisementList(long orgId, long propId, long versionId,
			AsyncCallback<List<Advertisement>> callback);

	void permDeleteAdvertisement(Advertisement ad,AsyncCallback<Boolean> callback);

	void saveAdvertisement(Advertisement ad,
			AsyncCallback<Advertisement> callback);

	void saveAdvertisementList(List<Advertisement> adList,
			AsyncCallback<List<Advertisement>> callback);

	void getAdvertisementViewList(long orgId,long propId,
			AsyncCallback<List<com.fcscs.cservice.domain.model.Advertisement>> callback);

}
